package com.zhida.jiyangcenter.utils

import java.math.RoundingMode

const val REGEX_PASSWORD = "^(?=.*[A-Za-z])(?=.*\\d)[A-Za-z\\d~!@&\$%^*()_#]{8,16}\$"

fun bigDecimalAdd(money:Double,coupon_money:Double):Double{
    return (money.toBigDecimal()+ coupon_money.toBigDecimal()).setScale(2, RoundingMode.HALF_DOWN).toDouble()
}
fun bigDecimalReduce(money:Double,coupon_money:Double):Double{
    return (money.toBigDecimal()- coupon_money.toBigDecimal()).setScale(2, RoundingMode.HALF_DOWN).toDouble()
}
